package com.junzhiit.nengji.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.junzhiit.nengji.shop.service.PrintingService;
import com.junzhiit.nengji.shop.web.util.printing.service.PrintingUtilService;

@Service
public class PrintingServiceImpl extends BaseServiceImpl implements PrintingService {
	
	@Autowired
	private PrintingUtilService printingUtilService;

	@Override
	public void printIndex(String shopId, String orderId) {
		try {
			printingUtilService.printIndex(shopId, orderId);
		} catch (Exception e) {
			logger.info(e.getMessage());
			e.printStackTrace();
		}
	}
}
